package com.ibatis.jpetstore.domain;

import java.io.Serializable;
import java.math.BigDecimal;

public class Schemapt implements Serializable{
	
	private int schemaid ;
    private String moneyAsStr;
	private BigDecimal money;
	private int points ;
	private int otherpoints;
	private String delete_ind;
	
	public int getSchemaid() {
		return schemaid;
	}
	public void setSchemaid(int schemaid) {
		this.schemaid = schemaid;
	}
	public String getMoneyAsStr() {
		return moneyAsStr;
	}
	public void setMoneyAsStr(String moneyAsStr) {
		this.moneyAsStr = moneyAsStr;
		if(moneyAsStr!=null&&!"".equals(moneyAsStr))
		{
			if(com.ibatis.jpetstore.util.NumberUtil.isNumber(moneyAsStr, true))
			{
				money=new java.math.BigDecimal(moneyAsStr);
			}
		}
		else
		{
			money=null;
		}
	}
	public BigDecimal getMoney() {
		return money;
	}
	public void setMoney(BigDecimal money) {
		this.money = money;
		if(money!=null)
		{
			moneyAsStr=com.ibatis.jpetstore.util.NumberUtil.format(money.doubleValue(), "##0.00");
			
		}
		else
		{
			moneyAsStr="";
		}
	}
	public int getPoints() {
		return points;
	}
	public void setPoints(int points) {
		this.points = points;
	}
	public int getOtherpoints() {
		return otherpoints;
	}
	public void setOtherpoints(int otherpoints) {
		this.otherpoints = otherpoints;
	}
	public String getDelete_ind() {
		return delete_ind;
	}
	public void setDelete_ind(String deleteInd) {
		delete_ind = deleteInd;
	}
	
	
}
